#all {
    position: relative;
    left: 100px;
    top: 25px;
    width: 1230px;
    text-align: center;
}

.card {
    max-width: calc(100vw - 10px);
    position: relative;
    padding: 5px 5px;
    background-color: gray;
    margin-bottom: 15px;
}

.grid-area {
    position: relative;
    background-color: #fff;
}

.card-thumbnail {
    padding-top: 100%;
    position: relative;
    height: 0;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.grid-area_b {
    padding: 5px;
}

.grid-area_b .card-title {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 7px;
}

.grid-area_b .card-submit {
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-bottom: 6px;
    color: #666;
}

.card-rating {
    padding: 5px;
    font-size: 12px;
    color: gray;
}

.card-rating.card-rating-1 i:nth-child(-n + 1) {
    color: orange;
}

.card-rating.card-rating-2 i:nth-child(-n + 2) {
    color: orange;
}

.card-rating.card-rating-3 i:nth-child(-n + 3) {
    color: orange;
}

.card-rating.card-rating-4 i:nth-child(-n + 4) {
    color: orange;
}

.card-rating.card-rating-5 i:nth-child(-n + 5) {
    color: orange;
}

.card-label {
    padding: 5px;
    font-size: 0;
}

.card-label span {
    display: inline-block;
    color: #ff5000;
    border: 1px solid #ff5000;
    font-size: 12px;
    padding: 2px 3px;
    border-radius: 3px;
}

.card-label span:not(:last-child) {
    margin-right: 5px;
}

.grid-area_d {
    padding: 5px;
    display: flex;
    flex-basis: 100%;
    align-items: center;
    background-color: #dedede;
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
}

.card-price {
    color: #ff5000;
    font-weight: 900;
}

button {
    background: #ff5000;
    color: #fff;
    padding: 5px 10px;
    border: none 0;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}

body {
    padding: 5px;
/*    display: grid;
    grid-auto-rows: min-content;*/
}

.card {
    width: 215px;
    display: grid;
    grid-template-rows: repeat(3, min-content);
    grid-template-columns: 33% calc(67% - 95px) 95px;
    grid-auto-rows: min-content;
}

.grid-area_a {
    grid-row: 1 / span 3;
    grid-column: 1;
}

.grid-area_b {
    grid-column: 2;
}

.grid-area_c {
    grid-row: 2;
    grid-column: 2;
}

.grid-area_d {
    grid-row: 1 / span 3;
    grid-column: 3;
}

@media only screen and (min-width: 768px) {
/*    body {
        grid-template-columns: repeat(4, auto);
    }*/
    .card {
        border-radius: 5px;
        display: inline-block;
        grid-template-rows: repeat(4, min-content);
        grid-template-columns: 100%;
        margin: 40px;
    }
    .grid-area {
        grid-column: 1;
    }
    .grid-area_a {
        height: 150px;
        grid-row: 1;
    }
    .grid-area_b {
        height: 69px;
        grid-row: 2;
    }
    .grid-area_c {
        grid-row: 3;
    }
    .grid-area_d {
        grid-row: 4;
    }
    .grid-area_d {
        flex-direction: row;
    }
}
/*分页栏*/
nav{
    height: auto;
    text-align: center;
}
